<?php

require_once "lib/WxPay.Config.Interface.php";


class WxPayConfig extends WxPayConfigInterface
{
    private $Config;
    
    function __construct($params){
        $this->Config = $params;
    }
	public function GetAppId()
	{
		return $this->Config['wxpay_appid'];
	}
	public function GetMerchantId()
	{
	    return $this->Config['wxpay_mchid'];;
	}
	
	function GetReportLevenl(){
	    
	}
	public function GetNotifyUrl()
	{
		return "";
	}
	public function GetSignType()
	{
		return "HMAC-SHA256";
	}


	public function GetProxy(&$proxyHost, &$proxyPort)
	{
		$proxyHost = "0.0.0.0";
		$proxyPort = 0;
	}
	

	public function GetKey()
	{
	    return $this->Config['wxpay_mchidkey'];
	}
	public function GetAppSecret()
	{
	    return $this->Config['wxpay_secert'];;
	}


	
	public function GetSSLCertPath(&$sslCertPath, &$sslKeyPath)
	{
		$sslCertPath = '';
		$sslKeyPath = '';
	}
}
